package com.example.recordingpen_datacollection.entity.pojo;

import java.util.Date;
  
public class ChatCompletion {  
    private String result;  
    private boolean need_clear_history;
    private long created; // 假设这是时间戳，这里用long类型  
    private Usage usage;  
    private boolean is_truncated;
    private String id;  
    private String object;  
  
    // Getter 和 Setter 省略，实际开发中需要添加  
  
    // 内部类，用于表示usage字段  
    public static class Usage {
        private int completion_tokens;
        private int prompt_tokens;
        private int total_tokens;
  
        // Getter 和 Setter 省略，实际开发中需要添加  
    }  
  
    // Getter 和 Setter 方法  

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public boolean isNeed_clear_history() {
        return need_clear_history;
    }

    public void setNeed_clear_history(boolean need_clear_history) {
        this.need_clear_history = need_clear_history;
    }

    public long getCreated() {
        return created;
    }

    public void setCreated(long created) {
        this.created = created;
    }

    public Usage getUsage() {
        return usage;
    }

    public void setUsage(Usage usage) {
        this.usage = usage;
    }

    public boolean isIs_truncated() {
        return is_truncated;
    }

    public void setIs_truncated(boolean is_truncated) {
        this.is_truncated = is_truncated;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }
}